import java.io.IOException;
import javax.servlet.http.*;

public class DoServlet extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws IOException {
            
        resp.setContentType("text/html");
        resp.getWriter().println("<a href=\"/\">Home</a>");
        resp.getWriter().println(doProcess(req.getParameter("q")));
    }
    public static String doProcess(String q)
    {
		if (q == null) return "";
		
		return q;
    }
}